<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    x:Class="OpenLS.Chart.UI.PlotAreaPropertiesResources"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:chart="http://schemas.Kherty.com/office/2007/chart"
    xmlns:chartui="clr-namespace:OpenLS.Chart.UI"
    xmlns:drawing="http://schemas.Kherty.com/office/2007/drawing"
    xmlns:drawing2="clr-namespace:OpenLS.Drawing.UI;assembly=OpenLS.Drawing.UI"
    xmlns:Internals="clr-namespace:OpenLS.Chart.UI.Internals">
            <ResourceDictionary.MergedDictionaries>
                <drawing:ColorResources/>
                <drawing:FillResources/>
        <chartui:PropertyResources/>
    </ResourceDictionary.MergedDictionaries>
    <DataTemplate DataType="{x:Type chart:PlotArea}">
        <TabControl chartui:ChartElement.ViewModel="{Binding Converter={x:Static Internals:ChartConverters.ViewModelFactory}}" >

            <TabItem Header="{x:Static Internals:UIStringTable.Fill}">
                <StackPanel>
                    <GroupBox >
                        <!--  <ContentControl Content="{Binding}" ContentTemplate="{x:Static chartui:ShapedPropertiesResources.FillPropertiesTemplate}"/> -->
                        <ContentControl Content="{Binding Path=(chartui:ChartElement.ViewModel).FillFormatter, RelativeSource={RelativeSource Self}}" />

                    </GroupBox>
                </StackPanel>
            </TabItem>
            <TabItem Header="{x:Static Internals:UIStringTable.BorderColor}">
                <GroupBox>
                    <ContentControl Content="{Binding Path=(chartui:ChartElement.ViewModel).LineFillFormatter, RelativeSource={RelativeSource Self}}" />
                </GroupBox>
            </TabItem>

            <TabItem Header="{x:Static Internals:UIStringTable.BorderStyles}">
                <GroupBox>
                    <ContentControl Content="{Binding Path=(chartui:ChartElement.ViewModel).LineStyleFormatter, RelativeSource={RelativeSource Self}}" />
                </GroupBox>
            </TabItem>
        </TabControl>
    </DataTemplate>

</ResourceDictionary>